import request from '../../utils/request';
import store from '../../store/index';

// 初始化投票
export function initVote() {
  return request.post('vote/startHmVote6', {
    splid: store.state.live.liveId,
    playInfo: 'vote',
  });
}

// 投票
export function submitVote(paramObj) {
  return request.post('vote/submitVote6', {
    splid: store.state.live.liveId,
    vote_id: paramObj.voteId,
    vote_limit: paramObj.voteSize,
  });
}
